class EnvContext
!!!198786.cpp!!!	EnvContext()



!!!198914.cpp!!!	~EnvContext()




	CONTEXT_MAP::iterator iter = m_context.begin();

	for(; iter != m_context.end(); ++iter)
	{
		delete iter->second;
		iter->second = NULL;


	}

	m_context.clear();

!!!199042.cpp!!!	identExists(in ident : Ident) : bool

	bool ret = false;


	CONTEXT_MAP::const_iterator iter = m_context.find(ident);
	CONTEXT_MAP::const_iterator end = m_context.end();

	if( iter != end )
	{
		ret = true;
	}

	return ret;

!!!199170.cpp!!!	addIdent(in type : IType, in ident : Ident) : bool

	std::pair< CONTEXT_MAP::iterator , bool > ret;
	IType* typeClone = type.clone();

	ret = m_context.insert( CONTEXT_MAP::value_type(ident,typeClone) );

	if( ret.second == false)
	{
		delete typeClone;
	}

	return ret.second;
!!!199298.cpp!!!	removeIdent(in ident : Ident) : bool

	bool ret = false;

	CONTEXT_MAP::iterator iter = m_context.find(ident);

	if( iter != m_context.end() )
	{
		IType *type = iter->second;
		delete type;
		iter->second = NULL;
		m_context.erase(ident);
		ret = true;

	}

	return ret;
!!!199426.cpp!!!	findType(in ident : Ident) : IType

	IType* type= NULL;
	CONTEXT_MAP::const_iterator iter = m_context.find(ident);

	if( iter != m_context.end() )
	{
		//Clone it and return it, this way we don't care
		// if someone miss behaves
			type = iter->second->clone();
	}


	return type;
!!!199554.cpp!!!	getAllOfType(inout type : IType, inout list : IContext::TypeList) : void

	TypeVisitorHelper argTypeHelper(type);
	TypeVisitorHelper::TYPE_ENUM argType = argTypeHelper.getType();

	CONTEXT_MAP::const_iterator it = m_context.begin();
	for(;it != m_context.end() ; ++it)
	{
		IType* contextType = it->second;
		TypeVisitorHelper helper(contextType);
		TypeVisitorHelper::TYPE_ENUM mapItemType = helper.getType();

		if(mapItemType == argType)
		{
			list.push_back(it->first);
		}


		//Needs to use the TypeVisitor, to know what type its is.
	}

!!!199682.cpp!!!	getParent() : IContext

	return NULL;

